
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>简介 · STM32HAL系列教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Atonidas">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="软件环境/" />
    
    

    </head>
    <body>
         

<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://Gitee.com/atonidas" target="_blank">Gitee</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="软件环境/">
            
                <a href="软件环境/">
            
                    
                    软件环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="软件环境/VScode的使用.html">
            
                <a href="软件环境/VScode的使用.html">
            
                    
                    VScode快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="软件环境/VSCode插件分享.html">
            
                <a href="软件环境/VSCode插件分享.html">
            
                    
                    VScode插件分享
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="软件环境/CubeMX简介.html">
            
                <a href="软件环境/CubeMX简介.html">
            
                    
                    CubeMX简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="软件环境/创建一个工程.html">
            
                <a href="软件环境/创建一个工程.html">
            
                    
                    创建一个工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="软件环境/Git版本管理.html">
            
                <a href="软件环境/Git版本管理.html">
            
                    
                    Git版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="软件环境/创建一个快速开发模板.html">
            
                <a href="软件环境/创建一个快速开发模板.html">
            
                    
                    创建一个快速开发模板
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="STM32的IO口/">
            
                <a href="STM32的IO口/">
            
                    
                    STM32的IO口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="STM32的IO口/点亮一个LED.html">
            
                <a href="STM32的IO口/点亮一个LED.html">
            
                    
                    点亮一个LED
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="STM32的IO口/使用独立按键.html">
            
                <a href="STM32的IO口/使用独立按键.html">
            
                    
                    使用独立按键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="STM32中断/">
            
                <a href="STM32中断/">
            
                    
                    STM32中断
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="STM32中断/CubeMX外部中断配置.html">
            
                <a href="STM32中断/CubeMX外部中断配置.html">
            
                    
                    CubeMX外部中断配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="STM32中断/HAL库外部中断程序.html">
            
                <a href="STM32中断/HAL库外部中断程序.html">
            
                    
                    HAL库外部中断程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="STM32定时器/">
            
                <a href="STM32定时器/">
            
                    
                    STM32定时器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="STM32定时器/定时器简单中断程序.html">
            
                <a href="STM32定时器/定时器简单中断程序.html">
            
                    
                    定时器简单中断程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="STM32定时器/硬件PWM输出.html">
            
                <a href="STM32定时器/硬件PWM输出.html">
            
                    
                    硬件PWM输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="STM32定时器/DMA输出PWM控制WS2812.html">
            
                <a href="STM32定时器/DMA输出PWM控制WS2812.html">
            
                    
                    DMA输出PWM控制WS2812
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="STM32串口/">
            
                <a href="STM32串口/">
            
                    
                    STM32串口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="STM32串口/串口发送及中断接收.html">
            
                <a href="STM32串口/串口发送及中断接收.html">
            
                    
                    串口发送及中断接收
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="STM32串口/串口的格式化输出.html">
            
                <a href="STM32串口/串口的格式化输出.html">
            
                    
                    串口的格式化输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="STM32串口/串口DMA传输.html">
            
                <a href="STM32串口/串口DMA传输.html">
            
                    
                    串口DMA传输
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="STM32串口/简单协议编写.html">
            
                <a href="STM32串口/简单协议编写.html">
            
                    
                    简单协议编写
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="SPI协议/">
            
                <a href="SPI协议/">
            
                    
                    SPI协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="SPI协议/CubeMX配置及主要函数.html">
            
                <a href="SPI协议/CubeMX配置及主要函数.html">
            
                    
                    CubeMX配置及主要参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="SPI协议/OLED驱动移植.html">
            
                <a href="SPI协议/OLED驱动移植.html">
            
                    
                    OLED驱动移植
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="SPI协议/LVGL移植显示.html">
            
                <a href="SPI协议/LVGL移植显示.html">
            
                    
                    LVGL移植显示
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="SPI协议/Flash的使用及文件系统.html">
            
                <a href="SPI协议/Flash的使用及文件系统.html">
            
                    
                    Flash的使用及文件系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="ADC的使用/">
            
                <a href="ADC的使用/">
            
                    
                    ADC的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="ADC的使用/CubeMX中ADC配置概览.html">
            
                <a href="ADC的使用/CubeMX中ADC配置概览.html">
            
                    
                    CubeMX中ADC配置概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="ADC的使用/查询阻塞方式.html">
            
                <a href="ADC的使用/查询阻塞方式.html">
            
                    
                    查询阻塞方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="ADC的使用/中断方式.html">
            
                <a href="ADC的使用/中断方式.html">
            
                    
                    中断方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="ADC的使用/DMA方式.html">
            
                <a href="ADC的使用/DMA方式.html">
            
                    
                    DMA方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="ADC的使用/应用示例.html">
            
                <a href="ADC的使用/应用示例.html">
            
                    
                    应用示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="其他代码整合搬运/">
            
                <a href="其他代码整合搬运/">
            
                    
                    其他代码整合搬运
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="其他代码整合搬运/MultiButton.html">
            
                <a href="其他代码整合搬运/MultiButton.html">
            
                    
                    MultiButton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="其他代码整合搬运/EasyLogger.html">
            
                <a href="其他代码整合搬运/EasyLogger.html">
            
                    
                    EasyLogger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="其他代码整合搬运/letter-shell.html">
            
                <a href="其他代码整合搬运/letter-shell.html">
            
                    
                    letter-shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="其他代码整合搬运/EasyFlash.html">
            
                <a href="其他代码整合搬运/EasyFlash.html">
            
                    
                    EasyFlash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="其他代码整合搬运/时间片调度.html">
            
                <a href="其他代码整合搬运/时间片调度.html">
            
                    
                    时间片调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="加入我们/">
            
                <a href="加入我们/">
            
                    
                    加入我们
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="加入我们/Gitbook环境.html">
            
                <a href="加入我们/Gitbook环境.html">
            
                    
                    Gitbook环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="加入我们/Markdown语法简介.html">
            
                <a href="加入我们/Markdown语法简介.html">
            
                    
                    Markdown语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="加入我们/编辑器推荐.html">
            
                <a href="加入我们/编辑器推荐.html">
            
                    
                    编辑器推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="加入我们/工程文件说明.html">
            
                <a href="加入我们/工程文件说明.html">
            
                    
                    工程文件说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="加入我们/提交注意事项.html">
            
                <a href="加入我们/提交注意事项.html">
            
                    
                    提交注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >简介</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <p><style>
@media (min-width: 768px){
  .markdown-section #book-cover {
      max-width: 80% !important;
      max-height: 460px;
  }
}
@media (max-width: 768px){
  .markdown-section #book-cover {
      max-width: 100% !important;
      max-height: 460px;
  }
}
.book-anchor {
  display: none;
}
.page-inner {
  padding: 20px 40px 20px 40px;
}
</style></p>
<h1 id="stm32-hal&#x5E93;&#x5165;&#x95E8;&#x6559;&#x7A0B;&#x4ECB;&#x7ECD;">STM32 HAL&#x5E93;&#x5165;&#x95E8;&#x6559;&#x7A0B;&#x4ECB;&#x7ECD;</h1>
<blockquote>
<p>&#x4F7F;&#x7528;<code>CubeMX</code>&#x751F;&#x6210;&#x521D;&#x59CB;&#x5316;&#x4EE3;&#x7801;&#xFF0C;&#x5728;<code>VScode</code>&#x4E2D;&#x4F7F;&#x7528;EIDE&#x63D2;&#x4EF6;&#x7F16;&#x8BD1;&#xFF0C;&#x7F16;&#x8BD1;&#x94FE;&#x4E3A;GCC&#xFF0C;&#x7248;&#x672C;&#x63A7;&#x5236;&#x4F7F;&#x7528;Git&#x548C;&#x53EF;&#x89C6;&#x5316;GUI&#xFF08;SourceTree&#xFF09;</p>
</blockquote>
<h2 id="&#x5F00;&#x53D1;&#x65B9;&#x5F0F;">&#x5F00;&#x53D1;&#x65B9;&#x5F0F;</h2>
<p>&#x76EE;&#x524D;STM32&#x6709;&#x56DB;&#x79CD;&#x7684;&#x5F00;&#x53D1;&#x65B9;&#x5F0F;&#xFF0C;&#x5373;&#x5BC4;&#x5B58;&#x5668;&#x3001;&#x6807;&#x51C6;&#x5E93;&#x3001;HAL&#x5E93;&#x3001;LL&#x5E93;&#xFF1A;</p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5E93;&#x7C7B;&#x578B;</th>
<th style="text-align:center">&#x53EF;&#x79FB;&#x690D;&#x6027;</th>
<th style="text-align:center">&#x4F18;&#x5316;</th>
<th style="text-align:center">&#x4E0A;&#x624B;</th>
<th style="text-align:center">&#x53EF;&#x8BFB;&#x6027;</th>
<th style="text-align:center">&#x652F;&#x6301;&#x8303;&#x56F4;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">&#x5BC4;&#x5B58;&#x5668;</td>
<td style="text-align:center"></td>
<td style="text-align:center">+++</td>
<td style="text-align:center"></td>
<td style="text-align:center"></td>
<td style="text-align:center">+</td>
</tr>
<tr>
<td style="text-align:center">&#x6807;&#x51C6;&#x5E93;</td>
<td style="text-align:center">++</td>
<td style="text-align:center">++</td>
<td style="text-align:center">+</td>
<td style="text-align:center">++</td>
<td style="text-align:center">++</td>
</tr>
<tr>
<td style="text-align:center">HAL&#x5E93;</td>
<td style="text-align:center">+++</td>
<td style="text-align:center">+</td>
<td style="text-align:center">++</td>
<td style="text-align:center">+++</td>
<td style="text-align:center">+++</td>
</tr>
<tr>
<td style="text-align:center">LL&#x5E93;</td>
<td style="text-align:center">+</td>
<td style="text-align:center">+++</td>
<td style="text-align:center">+</td>
<td style="text-align:center">++</td>
<td style="text-align:center">++</td>
</tr>
</tbody>
</table>
<p>&#x4EE5;&#x5F80;&#x6559;&#x7A0B;&#x4E2D;&#xFF0C;&#x8BF8;&#x5982;&#x6B63;&#x70B9;&#x539F;&#x5B50;F1&#x7CFB;&#x5217;&#x7684;&#x6559;&#x7A0B;&#xFF0C;&#x57FA;&#x672C;&#x4E0A;&#x662F;&#x4EE5;&#x6807;&#x51C6;&#x5E93;&#x4E3A;&#x4E3B;&#x8981;&#x5F00;&#x53D1;&#x65B9;&#x5F0F;&#xFF0C;&#x8F85;&#x4EE5;&#x5BC4;&#x5B58;&#x5668;&#x7406;&#x89E3;&#x8FDB;&#x884C;&#x521D;&#x59CB;&#x5316;&#x914D;&#x7F6E;&#x548C;&#x5F00;&#x53D1;&#x3002;&#x8FD9;&#x6837;&#x8BB2;&#x8BFE;&#x53EF;&#x4EE5;&#x8BB2;&#x5F97;&#x5F88;&#x7EC6;&#xFF0C;&#x80FD;&#x6DF1;&#x5165;&#x5230;MCU&#x7684;&#x5185;&#x6838;&#x4E2D;&#xFF0C;&#x4E86;&#x89E3;&#x5404;&#x4E2A;&#x5916;&#x8BBE;&#x7684;&#x5DE5;&#x4F5C;&#x65B9;&#x5F0F;&#xFF0C;&#x4F46;&#x4EE3;&#x4EF7;&#x662F;&#x8BFE;&#x7A0B;&#x65F6;&#x95F4;&#x957F;&#xFF0C;&#x53CA;&#x65F6;&#x89C6;&#x9891;&#x8D44;&#x6E90;&#x4E30;&#x5BCC;&#x4E5F;&#x96BE;&#x4EE5;&#x575A;&#x6301;&#x4E0B;&#x6765;&#x3002;&#x52A0;&#x4E0A;&#x76EE;&#x524D;F1&#x7CFB;&#x5217;&#x7684;32&#x5355;&#x7247;&#x673A;&#x4EF7;&#x683C;&#x5C45;&#x9AD8;&#x4E0D;&#x4E0B;&#xFF0C;&#x5728;&#x4E00;&#x4E9B;&#x521D;&#x59CB;&#x914D;&#x7F6E;&#x65F6;&#x6807;&#x51C6;&#x5E93;&#x4E5F;&#x5F88;&#x5934;&#x75BC;&#x3002;&#x672C;&#x7BC7;&#x6587;&#x7AE0;&#x4E3B;&#x8981;&#x4EE5;<strong>HAL&#x5E93;</strong>&#x7684;&#x5165;&#x95E8;&#x5F00;&#x53D1;&#x6559;&#x7A0B;&#x4E3A;&#x4E3B;&#xFF0C;&#x8F85;&#x4EE5;&#x4E00;&#x4E9B;&#x504F;&#x5E94;&#x7528;&#x7684;&#x7A0B;&#x5E8F;&#x8BB2;&#x89E3;&#xFF0C;&#x4EE5;&#x4E3A;&#x4E86;&#x66F4;&#x5FEB;&#x5E94;&#x7528;&#x7684;&#x5230;&#x5B9E;&#x9645;&#x7684;&#x9879;&#x76EE;&#x4E2D;</p>
<p><strong>&#x6B63;&#x70B9;&#x539F;&#x5B50;&#x5B66;&#x4E60;&#x8DEF;&#x7EBF;&#xFF1A;</strong> &#x8FD0;&#x4F5C;&#x539F;&#x7406;&#x2192;&#x521D;&#x59CB;&#x5316;&#x914D;&#x7F6E;&#x65B9;&#x5F0F;&#x2192;&#x7B80;&#x5355;&#x5E94;&#x7528;&#x2192;&#x5E94;&#x7528;&#x62D3;&#x5C55;</p>
<p><strong>&#x672C;&#x7BC7;&#x6559;&#x7A0B;&#x5B66;&#x4E60;&#x8DEF;&#x7EBF;:</strong>    &#x5916;&#x8BBE;&#x529F;&#x80FD;&#x2192;&#x5E94;&#x7528;&#x9700;&#x6C42;&#x2192;&#x5FEB;&#x901F;&#x521D;&#x59CB;&#x5316;&#x914D;&#x7F6E;&#x2192;&#x5E94;&#x7528;&#x62D3;&#x5C55;</p>
<p>&#x56E0;&#x6B64;&#xFF0C;&#x672C;&#x7BC7;&#x8BFE;&#x7A0B;&#x5F3A;&#x8C03;&#x5E94;&#x7528;&#x548C;&#x7A0B;&#x5E8F;&#x903B;&#x8F91;&#xFF0C;&#x53D7;&#x9650;&#x4E8E;&#x4F5C;&#x8005;&#x5F00;&#x53D1;&#x6C34;&#x5E73;&#xFF0C;&#x60F3;&#x5B66;&#x4E60;&#x5355;&#x7247;&#x673A;&#x5E95;&#x5C42;&#x5DE5;&#x4F5C;&#x65B9;&#x5F0F;&#x6216;&#x6709;&#x66F4;&#x590D;&#x6742;&#x9879;&#x76EE;&#x9700;&#x6C42;&#x8FD8;&#x8BF7;&#x6D4F;&#x89C8;&#x5176;&#x4ED6;&#x8D44;&#x6599;</p>
<h2 id="hal&#x5E93;&#x548C;cubemx">HAL&#x5E93;&#x548C;CubeMX</h2>
<p>HAL&#x5E93;&#x5927;&#x81F4;&#x539F;&#x7406;&#x4E0A;&#x548C;&#x6807;&#x51C6;&#x5E93;&#x7C7B;&#x4F3C;&#xFF0C;&#x90FD;&#x662F;&#x5C06;&#x5E95;&#x5C42;&#x5BC4;&#x5B58;&#x5668;&#x64CD;&#x4F5C;&#x5229;&#x7528;&#x51FD;&#x6570;&#x8FDB;&#x884C;&#x5C01;&#x88C5;&#xFF0C;&#x7528;&#x6237;&#x521D;&#x59CB;&#x5316;&#x6216;&#x8005;&#x4F7F;&#x7528;&#x65F6;&#x5229;&#x7528;&#x58F0;&#x660E;&#x7ED3;&#x6784;&#x4F53;&#x7684;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;&#x521D;&#x59CB;&#x5316;&#x6216;&#x8005;&#x4F7F;&#x7528;&#x3002;&#x4E0D;&#x8FC7;HAL&#x7684;&#x5C01;&#x88C5;&#x7A0B;&#x5EA6;&#x66F4;&#x9AD8;&#xFF0C;&#x5C06;&#x4E00;&#x4E9B;&#x5916;&#x8BBE;&#x914D;&#x7F6E;&#x8FDB;&#x884C;&#x4E86;&#x6574;&#x5408;&#xFF0C;&#x968F;&#x4E4B;&#x800C;&#x6765;&#x7684;&#x662F;&#x4EE3;&#x7801;&#x8FD0;&#x884C;&#x6548;&#x7387;&#x7684;&#x964D;&#x4F4E;&#x3002;&#x597D;&#x5728;&#x73B0;&#x5728;&#x5355;&#x7247;&#x673A;&#x6027;&#x80FD;&#x90FD;&#x5F88;&#x5F3A;&#xFF0C;&#x53EF;&#x9009;&#x578B;&#x53F7;&#x4E30;&#x5BCC;&#xFF0C;&#x6682;&#x65F6;&#x4E0D;&#x7528;&#x8FC7;&#x4E8E;&#x62C5;&#x5FC3;&#x4EE3;&#x7801;&#x7A0B;&#x5E8F;&#x81C3;&#x80BF;&#x6548;&#x7387;&#x4F4E;&#xFF0C;&#x6216;&#x8005;&#x4EA4;&#x53C9;&#x4F7F;&#x7528;HAL&#x5E93;&#x548C;LL&#x5E93;&#x5F00;&#x53D1;&#x4E5F;&#x53EF;&#x4EE5;</p>
<p>&#x5373;&#x4FBF;&#x5982;&#x6B64;&#xFF0C;&#x5404;&#x79CD;&#x521D;&#x59CB;&#x5316;&#x914D;&#x7F6E;&#x8FD8;&#x662F;&#x79BB;&#x4E0D;&#x5F00;&#x7FFB;&#x9605;&#x6570;&#x636E;&#x624B;&#x518C;&#x6216;&#x8005;&#x9605;&#x8BFB;&#x6587;&#x7AE0;&#xFF0C;&#x5F53;&#x6D89;&#x53CA;&#x5230;IO&#x53E3;&#x7684;&#x590D;&#x7528;&#x548C;&#x6620;&#x5C04;&#x65F6;&#x66F4;&#x662F;&#x5982;&#x6B64;&#x3002;&#x4E3A;&#x4E86;&#x89E3;&#x51B3;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x672C;&#x6559;&#x7A0B;&#x793A;&#x4F8B;&#x7684;&#x6240;&#x6709;&#x4EE3;&#x7801;&#x5DE5;&#x7A0B;&#x5747;&#x7531;CubeMX&#x751F;&#x6210;&#x521D;&#x59CB;&#x5316;&#x9879;&#x76EE;&#xFF0C;&#x6DE1;&#x5316;&#x521D;&#x59CB;&#x5316;&#x7684;&#x539F;&#x7406;&#x8F6C;&#x800C;&#x5F3A;&#x8C03;&#x4EE3;&#x7801;&#x903B;&#x8F91;</p>
<h2 id="vs-code-&#x548C;-gcc">VS code &#x548C; GCC</h2>
<p>&#x901A;&#x5E38;&#x7F16;&#x8BD1;&#x5F00;&#x53D1;STM32&#x9879;&#x76EE;&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x7684;MDK&#x8F6F;&#x4EF6;&#xFF0C;&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x8001;&#x724C;&#x7684;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#xFF0C;MDK&#x8D44;&#x6599;&#x4E30;&#x5BCC;&#xFF0C;&#x8C03;&#x8BD5;&#x6E05;&#x6670;bug&#x8F83;&#x5C11;&#xFF0C;&#x5B8C;&#x6210;&#x7834;&#x89E3;&#x540E;&#x5C31;&#x53EF;&#x4EE5;&#x6D41;&#x7545;&#x5F00;&#x53D1;&#x3002;&#x4E0D;&#x8FC7;&#x5B83;&#x5B58;&#x5728;&#x5F00;&#x53D1;&#x754C;&#x9762;&#x6709;&#x70B9;&#x8001;&#x65E7;&#xFF0C;&#x5BF9;&#x4E00;&#x4E9B;&#x65B0;&#x529F;&#x80FD;&#x7684;&#x652F;&#x6301;&#x6027;&#x4E0D;&#x662F;&#x5F88;&#x597D;&#xFF0C;&#x9ED8;&#x8BA4;&#x4F7F;&#x7528;&#x7684;AC5&#x7F16;&#x8BD1;&#x5668;&#x7F16;&#x8BD1;&#x5927;&#x9879;&#x76EE;&#x901F;&#x5EA6;&#x6162;&#xFF0C;AC6&#x7F16;&#x8BD1;&#x8B66;&#x544A;&#x8F83;&#x591A;&#x7B49;&#x4E00;&#x4E9B;&#x4E0D;&#x4FBF;&#x3002;</p>
<p>&#x5BF9;&#x6BD4;&#x4E4B;&#x4E0B;&#xFF0C;VS code&#x7684;&#x5F00;&#x53D1;&#x754C;&#x9762;&#x6E05;&#x6670;&#x8F6F;&#x4EF6;&#x5F00;&#x6E90;&#x514D;&#x8D39;&#xFF0C;&#x652F;&#x6301;&#x591A;&#x79CD;&#x63D2;&#x4EF6;&#xFF0C;&#x4F7F;&#x7528;GCC&#x65F6;&#x7F16;&#x8BD1;&#x901F;&#x5EA6;&#x5F88;&#x5FEB;&#xFF0C;&#x6574;&#x4F53;&#x7801;&#x4EE3;&#x7801;&#x4F53;&#x9A8C;&#x8F83;&#x597D;&#x3002;&#x867D;&#x7136;&#x4E5F;&#x6709;&#x7740;&#x8BF8;&#x5982;&#x63D2;&#x4EF6;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x7E41;&#x7410;&#xFF0C;&#x51FA;&#x95EE;&#x9898;&#x540E;&#x7F51;&#x4E0A;&#x8D44;&#x6599;&#x6848;&#x4F8B;&#x8F83;&#x5C11;&#xFF0C;&#x8C03;&#x8BD5;&#x8D77;&#x6765;&#x4E0D;&#x5982;MDK&#x6E05;&#x6670;&#x660E;&#x786E;&#x7B49;&#x5F0A;&#x7AEF;&#x3002;&#x4F46;&#x672C;&#x6559;&#x7A0B;&#x5C06;&#x5C3D;&#x529B;&#x8BB2;&#x6E05;&#x695A;&#x5F00;&#x53D1;&#x8FC7;&#x7A0B;&#x7684;&#x5404;&#x4E2A;&#x6CE8;&#x610F;&#x4E8B;&#x9879;&#xFF0C;&#x5C3D;&#x53EF;&#x80FD;&#x591A;&#x5730;&#x89E3;&#x51B3;&#x5404;&#x7C7B;&#x95EE;&#x9898;&#x3002;</p>
<p>&#x6545;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4F7F;&#x7528;VS code&#x914D;&#x5408;EIDE&#x7B49;&#x63D2;&#x4EF6;&#x5F00;&#x53D1;&#xFF0C;&#x5728;&#x540E;&#x7EED;&#x5E94;&#x7528;&#x4E2D;&#x7A0D;&#x5FAE;&#x63D0;&#x53CA;MDK&#x4EE5;&#x65B9;&#x4FBF;&#x65E7;&#x5DE5;&#x7A0B;&#x9879;&#x76EE;&#x7684;&#x79FB;&#x690D;</p>
<h2 id="&#x7248;&#x672C;&#x63A7;&#x5236;&#x7BA1;&#x7406;git">&#x7248;&#x672C;&#x63A7;&#x5236;&#x7BA1;&#x7406;Git</h2>
<p>Git&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x4F18;&#x79C0;&#x7684;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7BA1;&#x7406;&#x8F6F;&#x4EF6;&#x5728;&#x5B9E;&#x9645;&#x516C;&#x53F8;&#x751F;&#x4EA7;&#x5F00;&#x53D1;&#x73AF;&#x8282;&#x6709;&#x7740;&#x5E7F;&#x6CDB;&#x7684;&#x4F7F;&#x7528;&#xFF0C;&#x914D;&#x5408;&#x4E91;&#x7AEF;&#x4EE3;&#x7801;&#x6258;&#x7BA1;&#x5E73;&#x53F0;&#xFF08;GitHub&#x3001;Gitee&#xFF09;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x4EE3;&#x7801;&#x7684;&#x4E91;&#x7AEF;&#x5907;&#x4EFD;&#x6216;&#x591A;&#x4EBA;&#x534F;&#x540C;&#x5F00;&#x53D1;&#xFF0C;&#x5BF9;&#x6211;&#x4EEC;&#x7684;&#x5B9E;&#x9645;&#x5F00;&#x53D1;&#x5B66;&#x4E60;&#x8FC7;&#x7A0B;&#x6709;&#x7740;&#x5F88;&#x5927;&#x7684;&#x5E2E;&#x52A9;&#x3002;</p>
<p>&#x4E0D;&#x8FC7;&#x56E0;&#x4E3A;&#x5176;&#x64CD;&#x4F5C;&#x90FD;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x4E2D;&#x8FDB;&#x884C;&#xFF0C;&#x65B0;&#x624B;&#x96BE;&#x4EE5;&#x5165;&#x95E8;&#xFF0C;&#x9047;&#x4E0A;&#x5F53;&#x524D;&#x7248;&#x672C;&#x548C;&#x4E91;&#x7AEF;&#x4E0D;&#x5339;&#x914D;&#x6216;&#x5206;&#x652F;&#x3001;&#x5408;&#x5E76;&#x64CD;&#x4F5C;&#x65F6;&#x66F4;&#x662F;&#x8BA9;&#x4EBA;&#x5934;&#x75BC;&#xFF0C;&#x6700;&#x540E;&#x8FD9;&#x4E2A;&#x8F6F;&#x4EF6;&#x5728;&#x5927;&#x5B66;&#x4E00;&#x822C;&#x6559;&#x5B66;&#x4E2D;&#x5E76;&#x4E0D;&#x662F;&#x5F88;&#x80FD;&#x63A8;&#x5E7F;&#x5F00;&#x6765;&#x3002;&#x56E0;&#x6B64;&#xFF0C;&#x672C;&#x6559;&#x7A0B;&#x4F1A;&#x5728;&#x642D;&#x5EFA;&#x73AF;&#x5883;&#x65F6;&#xFF0C;&#x6559;&#x4F1A;&#x5404;&#x4F4D;&#x4F7F;&#x7528;SourceTree&#x8F6F;&#x4EF6;&#x5BF9;Git&#x8FDB;&#x884C;&#x53EF;&#x89C6;&#x5316;&#x64CD;&#x4F5C;&#x7BA1;&#x7406;&#xFF0C;&#x8BFE;&#x7A0B;&#x4E2D;&#x7684;&#x4EE3;&#x7801;demo&#x4E5F;&#x4F1A;&#x540C;&#x6B65;&#x5230;&#x4F5C;&#x8005;&#x7684;&#x4E2A;&#x4EBA;Gitee&#xFF0C;&#x5E0C;&#x671B;&#x5404;&#x4F4D;&#x80FD;&#x517B;&#x6210;&#x826F;&#x597D;&#x7684;&#x5DE5;&#x7A0B;&#x9879;&#x76EE;&#x4E60;&#x60EF;</p>
<h1 id="&#x6559;&#x7A0B;&#x7D22;&#x5F15;">&#x6559;&#x7A0B;&#x7D22;&#x5F15;</h1>
<ul>
<li><a href="STM32&#x4E2D;&#x65AD;/">&#x5916;&#x90E8;&#x4E2D;&#x65AD;&#x6559;&#x7A0B;</a></li>
<li><a href="STM32&#x5B9A;&#x65F6;&#x5668;/">&#x5B9A;&#x65F6;&#x5668;&#x6559;&#x7A0B;</a></li>
</ul>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
        </div>
      </div>
      
    </div>

      
    <a
      href="软件环境/"
      class="
        navigation navigation-next
        navigation-unique
      "
      aria-label="Next page: 软件环境"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"简介","level":"1.1","depth":1,"next":{"title":"软件环境","level":"1.2","depth":1,"path":"软件环境/README.md","ref":"./软件环境/README.md","articles":[{"title":"VScode快速入门","level":"1.2.1","depth":2,"path":"软件环境/VScode的使用.md","ref":"./软件环境/VScode的使用.md","articles":[]},{"title":"VScode插件分享","level":"1.2.2","depth":2,"path":"软件环境/VSCode插件分享.md","ref":"./软件环境/VSCode插件分享.md","articles":[]},{"title":"CubeMX简介","level":"1.2.3","depth":2,"path":"软件环境/CubeMX简介.md","ref":"./软件环境/CubeMX简介.md","articles":[]},{"title":"创建一个工程","level":"1.2.4","depth":2,"path":"软件环境/创建一个工程.md","ref":"./软件环境/创建一个工程.md","articles":[]},{"title":"Git版本管理","level":"1.2.5","depth":2,"path":"软件环境/Git版本管理.md","ref":"./软件环境/Git版本管理.md","articles":[]},{"title":"创建一个快速开发模板","level":"1.2.6","depth":2,"path":"软件环境/创建一个快速开发模板.md","ref":"./软件环境/创建一个快速开发模板.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","-code","expandable-chapters","theme-lou","back-to-top-button","search-pro","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#8abcd1","copyright":{"author":"Atonidas"},"forbidCopy":false,"logo":"assets/logo.png","search-placeholder":"查找关键内容","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Atonidas","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://Gitee.com/atonidas","name":"Gitee"}]}},"title":"STM32HAL系列教程","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"README.md","mtime":"2023-04-04T06:18:13.025Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-13T00:50:24.020Z"},"basePath":".","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

